package org.zjx.state;

import lombok.Data;
import org.zjx.entity.Quest;

import java.util.HashMap;
import java.util.Map;

@Data
public class QuestState implements IDataState {
    private Map<String,Quest> quests;

    public QuestState(){
        quests = new HashMap<>();
    }

    public void add(Quest quest) {
        quests.put(quest.getName(), quest);
    }

    public Quest get(String name) {
        return quests.get(name);
    }
}
